import 'package:flutter/material.dart';

/// 自定义的商店搜索栏组件
class ShopSearchBar extends StatefulWidget {
  /// 构造函数
  const ShopSearchBar({super.key});

  @override
  State<ShopSearchBar> createState() => ShopSearchBarState();
}

/// 商店搜索栏的状态管理类
class ShopSearchBarState extends State<ShopSearchBar> {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 50,
      padding: const EdgeInsets.all(10),
      decoration: const BoxDecoration(
        color: Color.fromARGB(255, 235, 232, 232),
      ),
      child: Container(
        decoration: BoxDecoration(
          color: Colors.white,
          borderRadius: BorderRadius.circular(50),
        ),
        padding: const EdgeInsets.symmetric(horizontal: 5),
        child: const Row(
          children: [
            Icon(
              Icons.search,
              color: Colors.grey,
            ),
            Text(
              '搜索商品',
              style: TextStyle(color: Colors.grey),
            ),
          ],
        ),
      ),
    );
  }
}